package com.jadcon.addressbook.domain;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service("addressService")
public class AddressServiceImpl implements AddressService {

	@Autowired()
	AddressRepository addressRepository;

	public List<Address> getAddressList() {
		return addressRepository.getAddressList();
	}

	public void save(Address address) {
		addressRepository.save(address);

	}

}
